package com.basic.business;

import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson2.JSON;
import com.basic.business.common.constants.KmConstants;
import com.basic.business.common.utils.ULIDUtils;
import com.basic.business.common.utils.kmUtil.PostParamsUtil;
import com.basic.business.redis.domain.TOrdersMainRedis;
import com.google.common.collect.Maps;

import java.util.Map;

import static com.basic.business.packaging.server.AutomaticPackagingServer.updateTags;

public class testApi {

    public static void main(String[] args) {
        Map<String, String> businessParams = Maps.newHashMap();
        businessParams.put("sid", "5279084656782702");
        String result = HttpUtil.post(KmConstants.URL, JSON.toJSONString(PostParamsUtil.getBusinessParams("1", KmConstants.QUERY_OUTSTOCK_SIMPLE_METHOD, businessParams)));
        System.out.println(result);

//            TOrdersMainRedis mainRedis = new TOrdersMainRedis();
//            mainRedis.setTags("0");
//            updateTags(1L, mainRedis, false, true);

        
        
    }

}
